<?php defined('RUN_KATANA') or die('Restricted access'); ?>
<?php if(is_object($ac->getCurrentProfile())): ?>
	<div class="prospector list">
		<div class="float-right" style="width:541px;">
			<div class="prospect-list-padding">
				<h1 class="title"><?php echo $ac->CurrentProfile->getCompany(); ?></h1>
				<p>
                	<?php echo $ac->CurrentProfile->getProfilePage(); ?>
                </p>
                <br /><hr />
                <?php 
				if($adc->getUserAds($ac->CurrentProfile->getId()))
				{
					?>
                    <div class="float-right prospect-list" style="width:520px;">
                        <div class="">
                        <?php
                        if(count($adc->getUserAds($ac->CurrentProfile->getId())) > 0)
                        {
							$adc->setViewObject('Ad');
							$katana->setList('Ad');
                            foreach($adc->getUserAds($ac->CurrentProfile->getId()) as $ad)
                            {
                                if(is_file($adc->getViewPath().get_class($ad).'Item.php'))
                                { require($adc->getViewPath().get_class($ad).'Item.php'); }
                                else
                                {
                                    if(is_file($adc->getViewPath().'AdItem.php'))
                                    { require($adc->getViewPath().'AdItem.php'); }
                                }
                                echo '<div class="clear"></div><hr />';
                                
                                $katana->TrackViews['am_ads'][$ad->getId()]['table'] = 'am_ads';
                                $katana->TrackViews['am_ads'][$ad->getId()]['where'] = 'id='.$ad->getId();
                                $katana->TrackViews['am_ads'][$ad->getId()]['set'] = 'ViewsList=ViewsList+1';
                            }
							$adc->setViewObject('');
							$katana->setList('');
                        }
                        ?>
                        </div>
                    </div><div class="clear"></div>
                   	<?php
				}
				?>
			</div>
		</div>
        <?php if(!defined('RUN_IFRAME')): ?>
		<div class="float-left seller-info" style="width:185px;">
			<div class="seller-info-padding">
				<?php require('elements/Contact.php'); ?>
				<br /><hr />
				<?php require('elements/Location.php'); ?>
				<div class="v-space">&nbsp;</div>
			</div>
		</div>
		<?php endif; ?>
        <div class="clear"></div>
	</div>
<?php endif; ?>